package com.heima.model.schedule.pojos;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @TableName taskinfo_logs
 */
@ApiModel(description = "")
@TableName(value ="taskinfo_logs")
@Data
public class TaskinfoLogs implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 任务id
     */
    @ApiModelProperty("任务id")
    @TableId(type = IdType.ID_WORKER)
    private Long taskId;

    /**
     * 执行时间
     */
    @ApiModelProperty("执行时间")
    private Date executeTime;

    /**
     * 优先级
     */
    @ApiModelProperty("优先级")
    private Integer priority;

    /**
     * 任务类型
     */
    @ApiModelProperty("任务类型")
    private Integer taskType;

    /**
     * 版本号,用乐观锁
     */
    @Version
    @ApiModelProperty("版本号,用乐观锁")
    private Integer version;

    /**
     * 状态 0=初始化状态 1=EXECUTED 2=CANCELLED
     */
    @ApiModelProperty("状态 0=初始化状态 1=EXECUTED 2=CANCELLED")
    private Integer status;

    /**
     * 参数
     */
    @ApiModelProperty("参数")
    private byte[] parameters;
}